﻿<controls:ChildWindow x:Class="SilveR.ExcelSheetSelectionWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="240" Height="280" 
           Title="Select Excel Worksheet">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" HorizontalAlignment="Left" Margin="3,3,3,3" Text="Select the Excel Worksheet to load" VerticalAlignment="Center" />

        <ListBox Grid.Row="1" HorizontalAlignment="Stretch" Margin="3,3,3,3" Name="lstWorkSheets" VerticalAlignment="Stretch" MouseLeftButtonDown="ElementMouseDown"/>

        <StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="3,3,3,3" />
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="3,3,3,3" />
        </StackPanel>
    </Grid>
</controls:ChildWindow>